username=input()
for character in username:
    if username.index(character) == 0:
        if not character.isalpha() and character != '_':
            print('No')
            quit()
    else:
        if not character.isalnum() and character != '_':
            print('No')
            quit()
print('Yes')
